package com.bnyy.message.event;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2022/12/20
 **/
public class ChatMessageEvent {

    public enum Type {
        CLEAR_UNREAD_COUNT,
        GET_OFF_LINE_CHAT; // 获取离线消息结束
    }

    private Type type;
    private Object data;

    public ChatMessageEvent(Type type) {
        this.type = type;
    }

    public ChatMessageEvent(Type type, Object data) {
        this.type = type;
        this.data = data;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
